#include "Listtexture.h"
#include "Global.h"

//Simon
	LPDIRECT3DTEXTURE9		Listtexture::SIMON;
	int						Listtexture::SIMON_WIDTH;
	int						Listtexture::SIMON_HEIGHT;
	int						Listtexture::SIMON_COUNT;
	int						Listtexture::SIMON_SPRITEPERROW;
	int						Listtexture::SIMON_ANIMATERATE;
	int						Listtexture::SIMON_MOVE_LEFT_START;
	int						Listtexture::SIMON_MOVE_LEFT_END;
	int						Listtexture::SIMON_SIT_LEFT;
	int						Listtexture::SIMON_FIGHT_LEFT_START;
	int						Listtexture::SIMON_FIGHT_LEFT_END;
	int						Listtexture::SIMON_MOVE_DOWN_LEFT_START;
	int						Listtexture::SIMON_MOVE_DOWN_LEFT_END;
	int						Listtexture::SIMON_MOVE_UP_LEFT_START;
	int						Listtexture::SIMON_MOVE_UP_LEFT_END;
	int						Listtexture::SIMON_SIT_LEFT_FIGHT_START;
	int						Listtexture::SIMON_SIT_LEFT_FIGHT_END;
	int						Listtexture::SIMON_JUMP_LEFT_FIGHT_START;
	int						Listtexture::SIMON_JUMP_LEFT_FIGHT_END;
	int						Listtexture::SIMON_ON_STAIR_LEFT_FIGHT_START;
	int						Listtexture::SIMON_ON_STAIR_LEFT_FIGHT_END;



	int						Listtexture::SIMON_MOVE_RIGHT_START;
	int						Listtexture::SIMON_MOVE_RIGHT_END;
	int						Listtexture::SIMON_SIT_RIGHT;
	int						Listtexture::SIMON_FIGHT_RIGHT_START;
	int						Listtexture::SIMON_FIGHT_RIGHT_END;
	int						Listtexture::SIMON_MOVE_DOWN_RIGHT_START;
	int						Listtexture::SIMON_MOVE_DOWN_RIGHT_END;
	int						Listtexture::SIMON_MOVE_UP_RIGHT_START;
	int						Listtexture::SIMON_MOVE_UP_RIGHT_END;
	int						Listtexture::SIMON_SIT_RIGHT_FIGHT_START;
	int						Listtexture::SIMON_SIT_RIGHT_FIGHT_END;
	int						Listtexture::SIMON_JUMP_RIGHT_FIGHT_START;
	int						Listtexture::SIMON_JUMP_RIGHT_FIGHT_END;
	int						Listtexture::SIMON_ON_STAIR_RIGHT_FIGHT_START;
	int						Listtexture::SIMON_ON_STAIR_RIGHT_FIGHT_END;

	LPDIRECT3DTEXTURE9		Listtexture::WHIP;
	int						Listtexture::WHIP_WIDTH;
	int						Listtexture::WHIP_HEIGHT;
	int						Listtexture::WHIP_COUNT;
	int						Listtexture::WHIP_SPRITEPERROW;
	int						Listtexture::WHIP_ANIMATE;
	int						Listtexture::WHIP_LEFT_START;
	int						Listtexture::WHIP_LEFT_END;
	int						Listtexture::WHIP_RIGHT_START;
	int						Listtexture::WHIP_RIGHT_END;

	LPDIRECT3DTEXTURE9		Listtexture::FIRE;
	int						Listtexture::FIRE_WIDTH;
	int						Listtexture::FIRE_HEIGHT;
	int						Listtexture::FIRE_COUNT;
	int						Listtexture::FIRE_SPRITEPERROW;
	int						Listtexture::FIRE_ANIMATE;

	LPDIRECT3DTEXTURE9		Listtexture::DOOR;
	int						Listtexture::DOOR_WIDTH;
	int						Listtexture::DOOR_HEIGHT;
	int						Listtexture::DOOR_COUNT;
	int						Listtexture::DOOR_SPRITEPERROW;
	int						Listtexture::DOOR_ANIMATE;

	LPDIRECT3DTEXTURE9		Listtexture::CANDLE;
	int						Listtexture::CANDLE_WIDTH;
	int						Listtexture::CANDLE_HEIGHT;
	int						Listtexture::CANDLE_COUNT;
	int						Listtexture::CANDLE_SPRITEPERROW;
	int						Listtexture::CANDLE_ANIMATE;

	LPDIRECT3DTEXTURE9		Listtexture::BRICK;
	int						Listtexture::BRICK_WIDTH;
	int						Listtexture::BRICK_HEIGHT;
	int						Listtexture::BRICK_COUNT;
	int						Listtexture::BRICK_SPRITEPERROW;
	int						Listtexture::BRICK_ANIMATE;

	LPDIRECT3DTEXTURE9		Listtexture::GROUND;
	int						Listtexture::GROUND_WIDTH;
	int						Listtexture::GROUND_HEIGHT;
	int						Listtexture::GROUND_COUNT;
	int						Listtexture::GROUND_SPRITEPERROW;
	int						Listtexture::GROUND_ANIMATE;

	LPDIRECT3DTEXTURE9		Listtexture::GHOST;
	int						Listtexture::GHOST_WIDTH;
	int						Listtexture::GHOST_HEIGHT;
	int						Listtexture::GHOST_COUNT;
	int						Listtexture::GHOST_SPRITEPERROW;
	int						Listtexture::GHOST_ANIMATE;

	LPDIRECT3DTEXTURE9		Listtexture::FISH;
	int						Listtexture::FISH_WIDTH;
	int						Listtexture::FISH_HEIGHT;
	int						Listtexture::FISH_COUNT;
	int						Listtexture::FISH_SPRITEPERROW;
	int						Listtexture::FISH_ANIMATE;

	LPDIRECT3DTEXTURE9		Listtexture::SOLDIER;
	int						Listtexture::SOLDIER_WIDTH;
	int						Listtexture::SOLDIER_HEIGHT;
	int						Listtexture::SOLDIER_COUNT;
	int						Listtexture::SOLDIER_SPRITEPERROW;
	int						Listtexture::SOLDIER_ANIMATE;

	LPDIRECT3DTEXTURE9		Listtexture::STAIR_LEFT;
	LPDIRECT3DTEXTURE9		Listtexture::STAIR_RIGHT;
	int						Listtexture::STAIR_WIDTH;
	int						Listtexture::STAIR_HEIGHT;
	int						Listtexture::STAIR_COUNT;
	int						Listtexture::STAIR_SPRITEPERROW;
	int						Listtexture::STAIR_ANIMATE;
	// back ground


Listtexture::Listtexture(){}
Listtexture::~Listtexture(){}

void Listtexture::CreateAllTexture()
{
	Listtexture::SIMON								= Global::_Directx->LoadTextureFromFile("image\\simon.PNG",0);
	Listtexture::SIMON_WIDTH						= 60;
	Listtexture::SIMON_HEIGHT						= 66;
	Listtexture::SIMON_COUNT						= 48;
	Listtexture::SIMON_SPRITEPERROW					= 24;
	Listtexture::SIMON_ANIMATERATE					= 20;
	Listtexture::SIMON_MOVE_LEFT_START				= 0;
	Listtexture::SIMON_MOVE_LEFT_END				= 3;
	Listtexture::SIMON_SIT_LEFT						= 4;
	Listtexture::SIMON_FIGHT_LEFT_START				= 5;
	Listtexture::SIMON_FIGHT_LEFT_END				= 7;
	Listtexture::SIMON_MOVE_DOWN_LEFT_START			= 10;
	Listtexture::SIMON_MOVE_DOWN_LEFT_END			= 11;
	Listtexture::SIMON_MOVE_UP_LEFT_START			= 11;
	Listtexture::SIMON_MOVE_UP_LEFT_END				= 14;
	Listtexture::SIMON_SIT_LEFT_FIGHT_START			= 15;
	Listtexture::SIMON_SIT_LEFT_FIGHT_END			= 17;
	Listtexture::SIMON_JUMP_LEFT_FIGHT_START		= 18;
	Listtexture::SIMON_JUMP_LEFT_FIGHT_END			= 20;
	Listtexture::SIMON_ON_STAIR_LEFT_FIGHT_START	= 21;
	Listtexture::SIMON_ON_STAIR_LEFT_FIGHT_END      = 23;

	Listtexture::SIMON_MOVE_RIGHT_START				= 24;
	Listtexture::SIMON_MOVE_RIGHT_END				= 27;
	Listtexture::SIMON_SIT_RIGHT					= 28;
	Listtexture::SIMON_FIGHT_RIGHT_START			= 29;
	Listtexture::SIMON_FIGHT_RIGHT_END				= 31;
	Listtexture::SIMON_MOVE_DOWN_RIGHT_START		= 34;
	Listtexture::SIMON_MOVE_DOWN_RIGHT_END          = 35;
	Listtexture::SIMON_MOVE_UP_RIGHT_START			= 35;
	Listtexture::SIMON_MOVE_UP_RIGHT_END			= 38;
	Listtexture::SIMON_SIT_RIGHT_FIGHT_START		= 39;
	Listtexture::SIMON_SIT_RIGHT_FIGHT_END			= 41;
	Listtexture::SIMON_JUMP_RIGHT_FIGHT_START		= 42;
	Listtexture::SIMON_JUMP_RIGHT_FIGHT_END			= 44;
	Listtexture::SIMON_ON_STAIR_RIGHT_FIGHT_START	= 45;
	Listtexture::SIMON_ON_STAIR_RIGHT_FIGHT_END		= 47;

	Listtexture::WHIP							= Global::_Directx->LoadTextureFromFile("image\\whip.PNG",0);
	Listtexture::WHIP_WIDTH						= 80;
	Listtexture::WHIP_HEIGHT					= 48;
	Listtexture::WHIP_COUNT						= 6;
	Listtexture::WHIP_SPRITEPERROW				= 3;
	Listtexture::WHIP_ANIMATE					= 20;
	Listtexture::WHIP_LEFT_START				= 0;
	Listtexture::WHIP_LEFT_END					= 2;
	Listtexture::WHIP_RIGHT_START				= 3;
	Listtexture::WHIP_RIGHT_END					= 5;

	Listtexture::FIRE							= Global::_Directx->LoadTextureFromFile("image\\fire.PNG",0);
	Listtexture::FIRE_WIDTH						= 32;
	Listtexture::FIRE_HEIGHT					= 64;
	Listtexture::FIRE_COUNT						= 2;
	Listtexture::FIRE_SPRITEPERROW				= 2;
	Listtexture::FIRE_ANIMATE					= 100;

	Listtexture::DOOR							= Global::_Directx->LoadTextureFromFile("image\\door.PNG",0);
	Listtexture::DOOR_WIDTH						= 44;
	Listtexture::DOOR_HEIGHT					= 96;
	Listtexture::DOOR_COUNT						= 2;
	Listtexture::DOOR_SPRITEPERROW				= 2;
	Listtexture::DOOR_ANIMATE					= 100;

	Listtexture::CANDLE							= Global::_Directx->LoadTextureFromFile("image\\candle.PNG",0);
	Listtexture::CANDLE_WIDTH					= 16;
	Listtexture::CANDLE_HEIGHT					= 32;
	Listtexture::CANDLE_COUNT					= 2;
	Listtexture::CANDLE_SPRITEPERROW			= 2;
	Listtexture::CANDLE_ANIMATE					= 100;

	Listtexture::BRICK							= Global::_Directx->LoadTextureFromFile("image\\brick.PNG",0);
	Listtexture::BRICK_WIDTH					= 32;
	Listtexture::BRICK_HEIGHT					= 32;
	Listtexture::BRICK_COUNT					= 1;
	Listtexture::BRICK_SPRITEPERROW				= 1;
	Listtexture::BRICK_ANIMATE					= 100;

	Listtexture::GROUND							= Global::_Directx->LoadTextureFromFile("image\\ground.PNG",0);
	Listtexture::GROUND_WIDTH					= 32;
	Listtexture::GROUND_HEIGHT					= 32;
	Listtexture::GROUND_COUNT					= 1;
	Listtexture::GROUND_SPRITEPERROW			= 1;
	Listtexture::GROUND_ANIMATE					= 100;

	Listtexture::GHOST							= Global::_Directx->LoadTextureFromFile("image\\ghost.PNG",0);
	Listtexture::GHOST_WIDTH					= 34;
	Listtexture::GHOST_HEIGHT					= 64;
	Listtexture::GHOST_COUNT					= 2;
	Listtexture::GHOST_SPRITEPERROW				= 2;
	Listtexture::GHOST_ANIMATE					= 100;

	Listtexture::FISH							= Global::_Directx->LoadTextureFromFile("image\\fish.PNG",0);
	Listtexture::FISH_WIDTH						= 32;
	Listtexture::FISH_HEIGHT					= 64;
	Listtexture::FISH_COUNT						= 3;
	Listtexture::FISH_SPRITEPERROW				= 3;
	Listtexture::FISH_ANIMATE					= 100;

	Listtexture::SOLDIER						= Global::_Directx->LoadTextureFromFile("image\\soldier.PNG",0);
	Listtexture::SOLDIER_WIDTH					= 44;
	Listtexture::SOLDIER_HEIGHT					= 64;
	Listtexture::SOLDIER_COUNT					= 2;
	Listtexture::SOLDIER_SPRITEPERROW			= 2;
	Listtexture::SOLDIER_ANIMATE				= 100;

	Listtexture::STAIR_LEFT						= Global::_Directx->LoadTextureFromFile("image\\stair_left.PNG",0);
	Listtexture::STAIR_RIGHT					= Global::_Directx->LoadTextureFromFile("image\\stair_right.PNG",0);
	Listtexture::STAIR_WIDTH					= 32;
	Listtexture::STAIR_HEIGHT					= 32;
	Listtexture::STAIR_COUNT					= 1;
	Listtexture::STAIR_SPRITEPERROW				= 1;
	Listtexture::STAIR_ANIMATE					= 100;
}